package com.example.twitternews;

import android.view.View;

import com.example.twitternews.Twitter.TwiterServices;

public class MyController implements View.OnClickListener
{
    private final MyView myView;
    private final MyModel myModel;

    public MyController(MyModel m, MyView v)
    {
        myModel = m;
        myView = v;
    }

    public void onClick(View view)
    {
        (new AsyncController()).execute(this);
    }

    public MyModel getModel()
    {
        return myModel;
    }

    public MyView getView()
    {
        return myView;
    }
}
